<?php
//打印数据
function p($data)
{
	echo "<pre>";
	var_dump($data);
	"</pre>";
}

//配置文件  C('a',null)
function C($name='',$value='')
{
	static $conf=[];
	if(empty($name))
	{
		return $conf;
	}
	else if(is_array($name))
	{
		$conf=array_merge($conf,$name);
	}
	else if(is_string($name))
	{
		if(is_null($value))
		{
			if(isset($conf[$name]))
			{
				unset($conf[$name]);
			}
			return true;
		}
		else if($value=='')
		{
			return isset($conf[$name])?$conf[$name]:null;
		}
		else
		{
			return $conf[$name]=$value;
		}
	}
}


















